﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Post.aspx.cs" Inherits="Default2" %>
<%@ MasterType VirtualPath="~/Site.master" %>
<%@ Register TagPrefix="recaptcha" Namespace="Recaptcha" Assembly="Recaptcha" %>


<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
			<h1><asp:Label ID="lblTitle" runat="server" /></h1>
			<asp:Label ID="lblCreated" runat="server" /> <br /><br />
			<asp:Label ID="lblBody" runat="server" /> <br /><br /><br />

			<hr />Comments: <br /><br />
			<table>
				<asp:Repeater ID="rComments" runat="server" OnItemDataBound="rComments_ItemDataBound">
					<ItemTemplate>
						<tr><td>
							<asp:Label ID="lblDatetime" runat="server" />
						</td><td style="text-align:justify;">
							<asp:Label ID="lblComment" runat="server" /> 
						</td></tr>
					</ItemTemplate>
					<AlternatingItemTemplate>
						<tr><td style="background-color: #cccccc">
							<asp:Label ID="lblDatetime" runat="server" />
						</td><td style="text-align:justify; background-color: #cccccc;">
							<asp:Label ID="lblComment" runat="server" /> 
						</td></tr>
					</AlternatingItemTemplate>
				</asp:Repeater>
			</table>
			<br /><br /><hr />

			<b><asp:Label ID="lblError" ForeColor="Red" Visible="false" runat="server" /></b>  <br /><br />

			Add a Comment: <br />
			<asp:TextBox ID="txtComment" runat="server" TextMode="MultiLine" Height="300" Width="600" /> <br />
			<recaptcha:RecaptchaControl ID="reCaptcha" runat="server" PublicKey="6LeQJwUAAAAAAA2egr3aUTNvtXLNdrjhItPsiNLY" PrivateKey="6LeQJwUAAAAAAG_kys7A9Bd-Rl8OVqUoX1QzjgDf" />

			<asp:Button ID="btnSubmit" runat="server" Text="Submit &gt;" OnClick="btnSubmit_Click" />
			<i>IP Address:&nbsp;<asp:Label ID="lblIP" runat="server" /></i>

	
</asp:Content>

